
package temp;

import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.Image;

public class FullImage extends Canvas
{
	private Image img = null;
	private int anchoScr;
	private int altoScr;
	
	public FullImage(Image i,int an,int al)
	{
		this.img = i;
		this.anchoScr=an;
		this.altoScr=al;
	}
	
	@Override
	public void paint(Graphics g)
	{
		g.drawImage(img.getScaledInstance(anchoScr, altoScr, 2), 0, 0, 400,400,this);
	}
}
